using System;

namespace SQLServices.Runners.Events
{
	/// <summary>
	/// Used to notify that a new message has been created by the runner
	/// </summary>
	public class ProgressMsgCreatedEventArgs : EventArgs
	{
		private readonly string _msg;
		
		public ProgressMsgCreatedEventArgs(string msg) : base()
		{
			_msg = msg;
		}

		public ProgressMsgCreatedEventArgs(string msg, params object[] args) :
			this(String.Format(msg, args)){}

		public string Message
		{
			get { return _msg; }
		}

	}
}